//
//  HotModel.m
//  0000327App
//
//  Created by user on 16/3/27.
//  Copyright © 2016年 MoreMoney. All rights reserved.
//

#import "XBHotModel.h"

@interface XBHotModel ()
//@property (nonatomic,strong) NSMutableArray *dataArray;
@end

static NSMutableArray *dataArray;

@implementation XBHotModel

+ (instancetype)modelName:(NSString *)name imageUrl:(NSString *)url
{
    XBHotModel *model = [[self alloc] init];
    model.name = name;
    model.imageUrl = url;
    return model;
}

+ (NSArray *)models
{
    dataArray = [NSMutableArray array];
    
    [self loadData];
    
    return dataArray;
}

+ (void)loadData
{
    [self addModelWithName:@"和田玉" imageURL:@"http://image1.xunbaozl.com/FrLu8wc97kdGXeLq8_yHTVNkdX_b"];
    [self addModelWithName:@"南红" imageURL:@"http://image1.xunbaozl.com/FuyAXaDWOcSq49GOryJ8OLA2wjwI"];
    [self addModelWithName:@"翡翠" imageURL:@"http://image1.xunbaozl.com/FiZLXiIjftfzc0E8jdIRUiuvdh8-"];
    [self addModelWithName:@"崖柏" imageURL:@"http://image1.xunbaozl.com/FpUvFm5S-jR5vzNTdooGHDLs1B2E"];
    [self addModelWithName:@"琥珀" imageURL:@"http://image1.xunbaozl.com/FhfJWQXLTn2DPfEgN30DKi1hgWXs"];
    [self addModelWithName:@"蜜蜡" imageURL:@"http://image1.xunbaozl.com/FgDdVxSUNFh6iFAeORJ6dQTF4QuD"];
    [self addModelWithName:@"绿松石" imageURL:@"http://image1.xunbaozl.com/FqGYpJcT8ijgCHUyQv_qQSsdHCVs"];
    [self addModelWithName:@"紫砂壶" imageURL:@"http://image1.xunbaozl.com/FiL73DJQ37DcFmuPfBh-4WGEuR5W"];
    [self addModelWithName:@"紫檀" imageURL:@"http://image1.xunbaozl.com/FiMqlyxHNgbjU6oQ2GL5fOUicKAR"];
    [self addModelWithName:@"黄花梨" imageURL:@"http://image1.xunbaozl.com/FqI6OlyU0Q7u6JegmG7PpvH90b-E"];
    [self addModelWithName:@"金刚菩提" imageURL:@"http://image1.xunbaozl.com/FjEqI61V7NgPVNrBlp2GXF2t3YI_"];
    [self addModelWithName:@"星月菩提" imageURL:@"http://image1.xunbaozl.com/FkLspfhIebq1W443IxZqNj5Oc1ir"];
}

+ (void)addModelWithName:(NSString *)name imageURL:(NSString *)url
{
    XBHotModel *model = [XBHotModel modelName:name imageUrl:url];
    [dataArray addObject:model];
}

@end
